//
//  DetailLabSubTextField.m
//  MovingLoaniOS
//
//  Created by 谷峰 on 2019/1/29.
//  Copyright © 2019 GWMFC. All rights reserved.
//

#import "DetailLabSubTextField.h"

@implementation DetailLabSubTextField

- (id)initWithCoder:(NSCoder *)aDecoder{
    if (self = [super initWithCoder:aDecoder]) {
        [self commonInit];
    }
    return self;
}

- (id)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        [self commonInit];
    }
    return self;
}

- (void)commonInit {
    self.detailLab = [[UILabel alloc]initWithFrame:self.bounds];
    self.detailLab.font = [UIFont systemFontOfSize:14];
    self.detailLab.textAlignment = NSTextAlignmentLeft;
    self.detailLab.textColor = [UIColor blackColor];
    self.detailLab.numberOfLines = 0;
    [self addSubview:self.detailLab];
}

//-(void)setDetailLab:(UILabel *)detailLab{
//    if (detailLab.text.length > 0) {
//        self.placeholder = @"";
//    }
//}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
